/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.edu.ecnu.gis.server;

import javax.xml.ws.WebServiceRef;
import spatialanalyst.RouteService;

/**
 *
 * @author meflyup
 */
public class NewMain {

    /**
     * @param args the command line arguments
     */
 

    public static void main(String[] args) {
        // TODO code application logic here
        try { // Call Web Service Operation
            spatialanalyst.RouteService service = new spatialanalyst.RouteService();
            spatialanalyst.RouteServicePortType port = service.getRouteServiceSOAP11PortHttp();
            // TODO process result here
            java.lang.String result = port.runRoute();
            System.out.println("Result = " + result);
        } catch (Exception ex) {
            // TODO handle custom exceptions here
             ex.printStackTrace();
        }
        try { // Call Web Service Operation

            AddService service = new AddService();
            AddServicePortType port = service.getAddServiceSOAP11PortHttp();
            // TODO initialize WS operation arguments here
            java.lang.Double param0 = 90.9;
            java.lang.Double param1 = 0.8;
            // TODO process result here
            java.lang.Double result = port.add(param0, param1);
            System.out.println("Result = " + result);
        } catch (Exception ex) {
            // TODO handle custom exceptions here
        }



    }
}
